<div class="khenthuongkyluats index">
	<h2><?php __('QUẢN LÍ KHEN THƯỞNG KỶ LUẬT');?></h2>
    <h4 align="right"> 
        <?php
            echo $this->Html->link(__('THÊM KHEN THƯỞNG KỶ LUẬT', true), array('action' => 'add')); 
        ?> 
    </h4>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('STT');?></th>
			<th><?php echo $this->Paginator->sort('LOẠI',array('loai_id'));?></th>
			<th><?php echo $this->Paginator->sort('CẤP',array('cap_id'));?></th>
			<th><?php echo $this->Paginator->sort('KHOA',array('khoa_id'));?></th>
			<th><?php echo $this->Paginator->sort('HÌNH THỨC',array('hinhthuc_id'));?></th>
			<th><?php echo $this->Paginator->sort('NGƯỜI NHẬN',array('nguoinhan'));?></th>
			<th><?php echo $this->Paginator->sort('LÝ DO',array('lydo'));?></th>
			<th><?php echo $this->Paginator->sort('GHI CHÚ',array('ghichu'));?></th>
			<th class="actions"><?php __('THAO TÁC');?></th>
	</tr>
	<?php
	$i = 0;
    //Số thứ tự
    $stt = 1;
	foreach ($khenthuongkyluats as $khenthuongkyluat):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $khenthuongkyluat['Khenthuongkyluat']['id']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($khenthuongkyluat['Loai']['id'], array('controller' => 'loais', 'action' => 'view', $khenthuongkyluat['Loai']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($khenthuongkyluat['Cap']['id'], array('controller' => 'caps', 'action' => 'view', $khenthuongkyluat['Cap']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($khenthuongkyluat['Khoa']['id'], array('controller' => 'khoas', 'action' => 'view', $khenthuongkyluat['Khoa']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($khenthuongkyluat['Hinhthuc']['id'], array('controller' => 'hinhthucs', 'action' => 'view', $khenthuongkyluat['Hinhthuc']['id'])); ?>
		</td>
		<td><?php echo $khenthuongkyluat['Khenthuongkyluat']['nguoinhan']; ?>&nbsp;</td>
		<td><?php echo $khenthuongkyluat['Khenthuongkyluat']['lydo']; ?>&nbsp;</td>
		<td><?php echo $khenthuongkyluat['Khenthuongkyluat']['ghichu']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Xem', true), array('action' => 'view', $khenthuongkyluat['Khenthuongkyluat']['id'])); ?>
			<?php echo $this->Html->link(__('Sửa', true), array('action' => 'edit', $khenthuongkyluat['Khenthuongkyluat']['id'])); ?>
			<?php echo $this->Html->link(__('Xóa', true), array('action' => 'delete', $khenthuongkyluat['Khenthuongkyluat']['id']), null, sprintf(__('Bạn có chắc muốn xóa khen thưởng kỷ luật này?', true), $khenthuongkyluat['Khenthuongkyluat']['id'])); ?>
		</td>
	</tr>
    <?php 
        $stt += $stt;
        endforeach; 
    ?>
	</table>
	<p>
    	<?php
        	echo $this->Paginator->counter(array(
        	'format' => __('Trang %page%/%pages%, hiển thị %current% mẫu tin trong tổng số %count% mẫu tin, bắt đầu tại %start%, và kết thúc tại %end%', true)
        	));
    	?>	
    </p>

	<div class="paging">
        <?php echo $paginator->first(__('Trang đầu'));?>
		<?php echo $this->Paginator->prev('<< ' . __('Trước', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Sau', true) . ' >>', array(), null, array('class' => 'disabled'));?>  
        <?php echo $this->Paginator->last(__('Trang cuối'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Khenthuongkyluat', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Loais', true), array('controller' => 'loais', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Loai', true), array('controller' => 'loais', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Caps', true), array('controller' => 'caps', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Cap', true), array('controller' => 'caps', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Khoas', true), array('controller' => 'khoas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Khoa', true), array('controller' => 'khoas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Hinhthucs', true), array('controller' => 'hinhthucs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Hinhthuc', true), array('controller' => 'hinhthucs', 'action' => 'add')); ?> </li>
	</ul>
</div>